package com.cai.xiaobai.entity.DTO.fromInfo.addFrom;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Tag(name = "创建问卷数据")
public class AddFromDTO {

    @Schema(description = "创建人")
    private String openId;

    @Schema(description = "问卷名")
    private String fromName;

    @Schema(description = "问卷的描述")
    private String fromDescribe;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "是否启用（0草稿  1发布中 2失效 3已结束 ）")
    private String status;

    @Schema(description = "是否置顶  1置顶  0不置顶(默认不置顶)")
    private String topping;

    @Schema(description = "问题数据")
    private List<QuestionDTO> questionList;
}
